package com.itheima.io.filewriter.demo01;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriterDemo01 {

    public static void main(String[] args) throws IOException {

        FileWriter fileWriter = new FileWriter("itheima-io-filewriter\\a.txt");

        for(int x = 0; x < 10; x++) {
            fileWriter.write("hello" + x);
            fileWriter.write("\r\n");
            fileWriter.flush();
        }

        fileWriter.close();

    }

}
